package com.foreknow.dao;

import com.foreknow.bean.Admin;

import java.sql.SQLException;

public interface AdminDao {

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    public Admin login(String username, String password);


    /**
     * 注册
     * @param admin
     * @return
     */
    public boolean register(Admin admin) throws SQLException;


}
